package com.qingcloud.adminbackend.entity.message;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_message_config")
public class SysMessageConfig extends Model {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "名称不能为空！")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 微信、短信、邮件、pc平台
     */
    @NotNull(message = "类型不能为空！")
    @ApiModelProperty(value = "通知平台类型")
    private String noticeType;

    @NotNull(message = "配置内容不能为空！")
    @ApiModelProperty(value = "配置内容Json串（例：{}）")
    private String config;

    @ApiModelProperty(value = "是否删除0：否；1是")
    private Integer deleteFlag;
}
